package com.ts.admin.modules.content;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ts.common.core.utils.Result;
import com.ts.feign.api.DisscussService;
import com.ts.feign.dto.DiscussDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/discuss")
public class DiscussController {
    @Autowired
    DisscussService disscussService;
    @PostMapping("/page")
    public Result page(@RequestBody Page<DiscussDto> page){
        return new Result().ok(disscussService.page(page));
    }
}
